﻿using HelloWorld.Repository;
using HelloWorld.Repository.Impl;

namespace HelloWorld.Service.Impl
{
    public class CalculateService: ICalculateService
    {
        private readonly ICalculateRepository _repository;

        public CalculateService(ICalculateRepository repository)
        {
            _repository = repository;
        }

        public Task<int> Sum(int i, int j)
        {
            return this._repository.Sum(i, j);
        }
    }
}
